#ifndef _H_PROP_
#define _H_PROP_
#include "Box2D/Box2D.h"

#include "SourceNum.h"
//#define PRONUMBERS 10
//
//#define GOLD_TYPE 1
//#define BANANA_TYPE 2
//#define CACTUS_TYPE 3
//#define STONE_TYPE 4
//#define HOLE_TYPE 5
//
//#define MAGNET_TYPE 6
//#define DOUBLE_TYPE 7
//#define SPEEDUP_TYPE 8
//#define SUPERMAN_TYPE 9

struct Proposition{
	float length;
	bool higher;
	int type;
	int number;
};





class Prop
{
public:	
	Prop * next;
	int type;
	b2Vec2 pos;
	bool isShowed;
	Prop(void){
		next = NULL;
		type = 0 ;
		isShowed = false;
	};
	~Prop(void){};
};

class PropCtrl{
private:
	Prop *pList;
	Prop *last;
	PropCtrl();
	static PropCtrl* pctrl;
public:
	Proposition *position;
	static PropCtrl* getShare();
	void setNext(int type,b2Vec2 &pos);
	Prop* getLast(){return last;}
	Prop *getHead();
};
#endif